package com.laima.basic.service.impl;

import com.laima.basic.dao.SysLogininforMapper;
import com.laima.basic.model.SysLogininfor;
import com.laima.basic.service.SysLogininforService;
import com.laima.basic.vo.SysLogininforVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: backend-server
 * @description: 系统登陆日志
 * @author: T
 * @create: 2021-03-25 13:50
 **/
@Service
public class SysLogininforServiceImpl implements SysLogininforService {

    @Autowired
    private SysLogininforMapper sysLogininforMapper;

    /**
     * 新增系统登录日志
     *
     * @param logininfor
     */
    @Override
    public void insertLogininfor(SysLogininfor logininfor) {
        sysLogininforMapper.insertLogininfor(logininfor);
    }

    /**
     * 查询系统登录日志集合
     *
     * @param
     * @return
     */
    @Override
    public List<SysLogininforVo> selectLogininforList() {
        return sysLogininforMapper.selectLogininforList();
    }

    @Override
    public List<SysLogininfor> selectList() {
        return sysLogininforMapper.selectList();
    }
    /**
     * 批量删除系统登录日志
     *
     * @param infoIds
     * @return
     */
    @Override
    public int deleteLogininforByIds(Long[] infoIds) {
        return sysLogininforMapper.deleteLogininforByIds(infoIds);
    }

    /**
     * 清空系统登录日志
     */
    @Override
    public void cleanLogininfor() {
        sysLogininforMapper.cleanLogininfor();
    }



}
